package com.amit.hibernate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="students")
public class Student {
	
	@Id
	@Column(name="sid")
private String sid;
private String sname;
private String email;
private String phone;



public Student()
{
	
}



public Student(String sid,String sname, String email, String phone) {
	
	this.sid=sid;
	this.sname = sname;
	this.email = email;
	this.phone = phone;
}



public String getSid() {
	return sid;
}



public void setSid(String sid) {
	this.sid = sid;
}



public String getSname() {
	return sname;
}



public void setSname(String sname) {
	this.sname = sname;
}



public String getEmail() {
	return email;
}



public void setEmail(String email) {
	this.email = email;
}



public String getPhone() {
	return phone;
}



public void setPhone(String phone) {
	this.phone = phone;
}







}
